package com.lyl.lawyer.service.impl;

import com.cn.lyl.lawyer.dao.CompanyMapper;
import com.cn.lyl.lawyer.model.entity.CompanyModel;
import com.cn.lyl.lawyer.service.CompanyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class CompanyServiceImpl implements CompanyService {

    @Autowired
    private CompanyMapper companyMapper;
    @Override
    public CompanyModel find() {

        return companyMapper.select();
    }

    @Override
    public void edit(CompanyModel companyModel) {
        companyMapper.update(companyModel);
    }
}
